<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

</head>
<body>
  <div id="test">
      运行在浏览中的页面

  </div>
  <script>
        function htmlTest(){
        console.log('兔年大吉')
        }
        //点击时调用web组件中定义的方法
        document.getElementById('test').addEventListener('click',()=>{
           console.log(1234567)
            let str=window.testObjName.test();
            console.log(str)
        })
    </script>
</body>
</html>